UPDATE C1_ENTITY_RELATIONSHIP T SET T.END_DATE = :endDate WHERE INSTR(','||:ids||',',','||T.ID||',') > 0